package VCs
{
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import flash.display.SimpleButton;
	import flash.events.Event;
	import flash.events.MouseEvent;
	
	import org.gof.application.BaseViewComponent;

	public class PlayBtnVC extends BaseViewComponent
	{
		public var clickCallBack:Function;
		private var playBtn:SimpleButton;
		
		public function PlayBtnVC(viewPort:DisplayObjectContainer)
		{
			super(viewPort);
			var tdo:DisplayObject =viewPort.getChildByName("play_btn"); 
			playBtn = tdo as SimpleButton;
			playBtn.addEventListener(MouseEvent.CLICK, handleClick);
		}
		
		
		private function handleClick(e:Event):void
		{
			clickCallBack();
		}
	}
}